﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/layout/OneColumn.Master" CodeBehind="EditBlogEntry.aspx.cs" Inherits="Plain.Demo.Blog.web.admin.EditBlogEntry" %>
<%@ Register Assembly="Plain.Web" Namespace="Plain.Web" TagPrefix="plain" %>
<asp:Content ID="ctnSingleColumn" runat="server" ContentPlaceHolderID="cphSingleColumn">
    <plain:PlainEntityManager ID="pemBlogEntry" runat="server" Type="Plain.Demo.Blog.BlogEntry, Plain.Demo.Blog" BindEvent="OnLoad" SaveButtonId="btnSave">
        <ParameterId>
            <asp:QueryStringParameter QueryStringField="Id" />
        </ParameterId>
    </plain:PlainEntityManager>
    <table>
        <tr>
            <td>
                <asp:label ID="lblTitle" runat="server" AssociatedControlID="Title" />
                <br />
                <asp:TextBox ID="Title" runat="server" Width="500px" />
            </td>
        </tr>
        <tr>
            <td>        
                <asp:label ID="lblAuthor" runat="server" AssociatedControlID="Author" />
                <br />
                <asp:TextBox ID="Author" runat="server" Width="500px" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:label ID="lblContent" runat="server" AssociatedControlID="Content" />
                <br />
                <asp:TextBox ID="Content" runat="server" TextMode="MultiLine" Width="500px" Height="400px" />
                
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="Gem" />
            </td>
        </tr>
    </table>
</asp:Content>